package com.lemon.boot.dto;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * @author 李猛
 * @datetime 2024/3/3 19:22
 * @description 类对象
 */
@Getter
@Setter
@ApiModel(value = "日志传输对象")
public class LogDTO extends Page<LogDTO> {
    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "起始日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")//接收前端的数据格式
    private LocalDate startDate;

    @ApiModelProperty(value = "结束日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")//接收前端的数据格式
    private LocalDate endDate;
}
